﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainMaster.master" AutoEventWireup="true"
    CodeFile="AddBlog.aspx.cs" Inherits="Community_AddBlog" %>

<%@ Register Src="../includes/Editor/Editor.ascx" TagName="BlogEditor" TagPrefix="Editor" %>
<%@ Register Src="../includes/myAccount.ascx" TagName="myAccount" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainTable" runat="Server">
    <div class="heading_inner">
        <div class="heading_topic">
            <h2>
                Post Title</h2>
        </div>
    </div>
    <div class="cl">
    </div>
    <div class="account_new">
        <div class="acc_nav">
            <uc3:myAccount ID="myAccount1" runat="server" />
        </div>
        <div class="part_1_blog">
            <div class="heading_account">
                <h2>
                    Welcome,</h2>
                <h3>
                    <%=Session["LoginName"]%></h3>
            </div>
            <div class="upper_acc">
                <div class="lft_up_acc">
                </div>
                <div class="center_stroke_acc">
                    <div class="form_head_acc">
                        Add Your Blog</div>
                </div>
                <div class="right_up_acc">
                </div>
            </div>
            <div style="text-align: center">
                <span id="ctl00_MainTable_lblMsg" style="height: 50px"></span>
            </div>
            <div class="doc_rsrc_acc">
                <div style="width: 500px;">
                    <table width="686" border="0" cellspacing="3" class="table_info_acc">
                        <tr>
                            <td colspan="2" style="text-align: center">
                                <asp:Label ID="lblMessage" runat="server" Style="color: Red;"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td width="113">
                                Title :
                            </td>
                            <td colspan="2">
                                <asp:TextBox runat="server"  CssClass="form-txt" ID="txtBlogTitle" Width="250px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td width="113">
                                Category :
                            </td>
                            <td colspan="2">
                                <asp:DropDownList ID="ddlCategory" Width="255px" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr valign="top">
                            <td width="113">
                                Description :
                            </td>
                            <td colspan="2">
                             <%--   <Editor:BlogEditor runat="server" ID="txtDescription" EnableViewState="true" style="width: 250px"
                                    CssClass="design" IsHtmlEncodeDecode="true" />--%>
                                <asp:TextBox ID="txtDescription" runat="server" CssClass="form-txt" Style="width: 250px"
                                    Height="80px" TextMode="MultiLine" Width="243px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td width="113">
                                Picture :
                            </td>
                            <td colspan="2">
                                <asp:FileUpload runat="server" CssClass="design" ID="uploadPic" Width="250px" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                            <td width="142">
                                <asp:Button ID="btnSubmit" runat="server" Text="Post" CssClass="buttonclass" Width="100px"
                                    OnClientClick="updateRTE('txtDescription');" Font-Bold="True" OnClick="btnSubmit_Click" />
                                &nbsp;&nbsp;
                            </td>
                            <td width="413">
                                <asp:LinkButton ID="lnkNewEntry" runat="server" OnClick="lnkNewEntry_Click" Font-Bold="True"
                                    Font-Underline="False"><img src="../images/add_t.png" width="16" height="16" alt="add" />&nbsp;ADD NEW POST</asp:LinkButton>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                <asp:GridView DataKeyNames="Id" ID="grdMessages" PageSize="10" runat="server" AutoGenerateColumns="False"
                                    ShowFooter="True" OnRowDeleting="grdMessages_RowDeleting" OnRowDataBound="grdMessages_RowDataBound"
                                    CssClass="normalgrey_12" Width="100%" AllowPaging="True" OnPageIndexChanging="grdMessages_PageIndexChanging"
                                    OnRowCommand="grdMessages_RowCommand" HorizontalAlign="Left">
                                    <Columns>
                                        <asp:BoundField HeaderText="PostTitle" DataField="Title">
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:BoundField>
                                        <asp:TemplateField HeaderText="Edit">
                                            <ItemTemplate>
                                                <asp:LinkButton CommandArgument='<%# Eval("ID") %>' CommandName="Editblog" ID="lnkEdit"
                                                    runat="server"><img src="../Images/editInfo.gif" border="0" alt="Edit Message" />
                                                </asp:LinkButton>
                                            </ItemTemplate>
                                            <FooterTemplate>
                                            </FooterTemplate>
                                            <HeaderStyle Width="15%" HorizontalAlign="Center" />
                                            <ItemStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Delete">
                                            <ItemTemplate>
                                                <asp:LinkButton CommandArgument="id" CommandName="Delete" ID="lnkDelete" runat="server"><img src="../Images/delete.gif" border="0" alt="Delete Record" /> 
                                                </asp:LinkButton>
                                            </ItemTemplate>
                                            <ItemStyle HorizontalAlign="Center" />
                                            <HeaderStyle Width="15%" HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                    </Columns>
                                    <RowStyle HorizontalAlign="Left" />
                                    <FooterStyle HorizontalAlign="Left" />
                                </asp:GridView>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <h5>
                <strong>Note:</strong> Your posting can be viewed by anyone. | <a href="#">Posting guidelines</a></h5>
            <br />
            <br />
        </div>
    </div>
</asp:Content>
